<?php  session_start(); 
require_once(APP.'libs'.DS.'system_properties.php');
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  xmlns:xn="http:///www.renren.com/2009/xnml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="http://static.connect.renren.com/js/v1.0/FeatureLoader.jsp"></script>
<title>开心免费试用 - 首页</title>
<style type="text/css">
.pl {float:left;width:730px;height:250px;overflow-y:scroll };
.pp {float:left;width:100px;padding:10px;text-align:center};
.pp a {font-size:12px}
</style>
</head>
<body>

<script>
XN_RequireFeatures(["EXNML"], function()
{
  XN.Main.init("<?=SystemProperties::$api_key?>", "<?=SystemProperties::$app_host_webroot?>/xd_receiver.html");
  XN.Main.get_sessionState().waitUntilReady(function() {
      var callback = function(){  alert('Authorize Success!');  }
      var cancel = function(){ alert('Authorize Failed!'); }
      XN.Connect.showAuthorizeAccessDialog(callback,cancel);

  });
    
});
</script>
    <a href="#" onclick="XN.Connect.showAuthorizeAccessDialog( function(){var auth=true;}  , function(){ var auth = false; } );">Authorization</a>


</body>
</html>